import React, { memo, useEffect, useState } from "react";

enum Enum {
  A = 'a',
  B = 'b'
}

export interface Model {
  enum: Enum
}

export default memo(() => {
  const [count, setCount] = useState(0);

  useEffect(() => {
      setTimeout(() => {
          console.log(`You clicked ${count} times`);
      }, 3000);
  });

  return (
      <div>
          <p>You clicked {count} times</p>
          <button onClick={() => setCount(count + 1)}>
              Click me
      </button>
      </div>
  );
});
